#!/usr/bin/python

# Update the weatherfrom pottononline.metar import Metarimport urllibmetar_id = "EGTC"weather_url = "http://weather.noaa.gov/pub/data/observations/metar/stations/" + metar_id + ".TXT"metar_data = urllib.urlopen(weather_url)for each in metar_data:  if each.startswith(metar_id):    obs = Metar.Metar(each)# Wind in MPHwind_speed = obs.wind_speed.string("MPH").strip('mph').strip()print obs.string()print "================================================================="print " "print " "print "Temp:     "  + obs.temp.string("C")print "Wind:     "  + wind_speedprint obs.present_weather()print "Sky:"
print obs.sky_conditions()
